package br.com.fatecpg.utils;

import android.app.Activity;
import android.app.AlertDialog;
import android.content.DialogInterface;


public class ApplicationUtils {
	
	public static void applicationSimpleDialog(Activity activity, String title, String message){
		AlertDialog.Builder builder = new AlertDialog.Builder(activity);
		builder.setTitle(title);
        builder.setMessage(message);
        builder.setNegativeButton("Fechar", new DialogInterface.OnClickListener() { 
        	public void onClick(DialogInterface arg0, int arg1) { 
        	} 
        });
        AlertDialog alerta = builder.create(); 
        alerta.show();
	}

	public static String removeSharepointId(String unformatText){
		String[] arrayText = unformatText.split("#");
		String formatText = "";
		for(int i = 1; i < arrayText.length;i++){
			formatText += arrayText[i];
		}
		return formatText;
	}
}
